//
// Copyright (c) 2009-2011, chunquedong
//
// This file is part of ChunMap project
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE(Version >=3)
//
// History:
//   2011-05-02  Jed Young  Creation
//

**
** Coordinate Reference System
**
@Js
const class CoordRef
{
  const Str name
  const Int srid
  const Datum? datum
  const Spheroid? spheroid
  const Projection? projection
  const Int? unit

  new make(|This| f) { f(this) }

//////////////////////////////////////////////////////////////////////////
// constant value
//////////////////////////////////////////////////////////////////////////

  static const CoordRef wgs84 := CoordRef { srid = 4326; name = "WGS84" }
  static const CoordRef defVal := CoordRef { srid = 0; name = "unknown" }
}